package haizhi.fruitmall.service;

import haizhi.fruitmall.pojo.form.GoodsForm;
import haizhi.fruitmall.pojo.form.GoodsUnitForm;
import haizhi.fruitmall.pojo.po.GoodsUnit;
import haizhi.fruitmall.pojo.view.GoodsUnitView;

import java.util.List;

/**
 * @Date: 2017/12/22 21:21
 * @Author: Richard Zane
 */

public interface GoodsUnitService {

    void insert(GoodsUnitForm form);

    void update(GoodsUnitForm form);

    void delete(Long id);

    GoodsUnit getone(Long id);

    List<GoodsUnit> getall(GoodsUnitForm form);

    List<GoodsUnitView> getView(GoodsForm goodsForm);

}